
@font-face {
  font-family: 'BerlinFraktur 24';
  src: url('../assets/fonts/BerlinFraktur-24.otf');
}

:root {
  --background: #222222;
  --text: #c4c5b8;
  --title: #aaa287;
  --darker-background: #1b1b1d;
  --accent: #aaa287;

  --header: url('../assets/fonts/BerlinFraktur-24.otf');
}

/* ------------------------------------------------------------
LIGHT MODE START
------------------------------------------------------------ */

.darkmode{
  --background: #c4c5b8;
  --text: #222222;
  --title: #7a735b;
  --darker-background: #c0c0af;
  --accent: #7a735b;
  --header: url('../assets/images/header.png');
}


#theme-switch {
  height: 20px;
  width: 100px;
  color: var(--accent);
  background-color: var(--background);
  display: flex;
  justify-content: center;
  align-items: center;
  border: 1px solid var(--text);
  cursor: grab;
  border-radius: 5px;
}

#theme-switch:hover{
  background-color: var(--darker-background);
}

#theme-switch p {
  fill: transparent;
  color: var(--text);
}

#theme-switch p:last-child {
  display: none;
}

.darkmode #theme-switch p:first-child {
  display: none;
}

.darkmode #theme-switch p:last-child {
  display: block;
}

/* ------------------------------------------------------------
LIGHT MODE END
------------------------------------------------------------ */

body {
  margin: 0;
  background-color: var(--background);
}

* {
  box-sizing: border-box;
  font-family: 'Calibri', sans-serif;
}

.container {
  margin: 0 auto;
  padding: 50px;
}

a {
  color: var(--text);
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent);
}

header {
  font-family: 'BerlinFraktur 24';
  font-size: 60px;
  color: var(--accent);
}

h1 {
  color: var(--text);
  font-size: 20px;
  font-weight: 100;
}

h2 {
  font-family: 'Times New Roman', Times, serif;
  font-size: 13px;
  color: var(--accent);
  font-style: italic;
}

h2 a {
  font-family: 'Times New Roman', Times, serif;
  font-size: 12px;
  color: var(--accent);
  font-style: italic;
}

h3 {
  font-family: 'Times New Roman', Times, serif;
  font-size: 15px;
  font-style: italic;
  text-decoration: underline 1px dotted;
  text-underline-offset: 3px;
}

mark {
  background: var(--accent);
  color:var(--background);
}

/* ------------------------------------------------------------
BOXES START
------------------------------------------------------------ */

.box {
  justify-items: center;
  column-count: 5;
  column-gap: 12px;
  width: 100%;
  margin: 0 auto;
  padding: 6px 0;
  margin-bottom: 42px;
}

.box .note {
  display: inline-block;
  width: 100%;
  background: var(--background);
  color: var(--text);
  border: 1px dotted var(--accent);
  margin: 0 0 12px 0;
  box-sizing: border-box;
  padding: 16px;
  break-inside: avoid;
  overflow: visible;
}

.longnote {
  max-height: 500px;
  overflow-y:scroll;
}

.note img {
  width: 100%;
  height: 100%;
  object-fit: fill;
  border: 1px solid var(--text);
}

@media (max-width: 1024px) {
  .box {
    column-count: 3;
  }
}

@media (max-width: 768px) {
  .box {
    column-count: 2;
  }
}

@media (max-width: 600px) {
  .box {
    column-count: 1;
  }
}

/* ------------------------------------------------------------
BOXES END
------------------------------------------------------------ */

/* ------------------------------------------------------------
FOOTER START
------------------------------------------------------------ */

footer {
  margin-bottom: 20px;
  text-align: center;
  font-size: 15px;
  color: var(--text);
  width: 400px;
  margin: 0 auto;
}

footer a {
  color: var(--text);
}

/* ------------------------------------------------------------
FOOTER END
------------------------------------------------------------ */

/* ------------------------------------------------------------
SCROLLBAR START
------------------------------------------------------------ */

::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--text);
  border-radius: 10px;
}

/* ------------------------------------------------------------
SCROLLBAR END
------------------------------------------------------------ */


